package com.mc.music_web.services.impl;

import com.mc.music_web.entity.MV;
import com.mc.music_web.mapper.MvVoMapper;
import com.mc.music_web.services.MvVoService;
import com.mc.music_web.vo.MVvo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;
@Service
@Transactional
public class MvVoServiceImpl implements MvVoService {
    @Autowired
     private MvVoMapper mvVoMapper;
    public List<MVvo> selectMVvo() {
        return mvVoMapper.selectMVvo();
    }

    public MV selectByMv(Integer mvId) {
        return mvVoMapper.selectByMv(mvId);
    }

    public int delteMVvo(Integer mvId) {
        return mvVoMapper.delteMVvo(mvId);
    }

    public int insertMVvo(MV mv) {
        return mvVoMapper.insertMVvo(mv);
    }

    public int updateMVvo(MV mv) {
        return mvVoMapper.updateMVvo(mv);
    }

    public List<MVvo> selectByMVvo(String keyword) {
        return mvVoMapper.selectByMVvo(keyword);
    }


}
